package com.ruoyi.project.cms.product.mapper;

import com.ruoyi.project.cms.product.domain.ProductSeries;

import java.util.List;

/**
 * @CreateTime 2020/5/17 22:51
 */
public interface SeriesMapper {
    //查询所有
    public List<ProductSeries> selectAllName();
    //查询所有(条件)
    public List<ProductSeries> selectAll(ProductSeries series);
    //校验新增系列信息是否有重复
    public ProductSeries checkSeriesNameUnique(String seriesName);
    //增加一个系列
    public int insertSeries(ProductSeries series);
    //根据id查询
    public ProductSeries selectSeriesById(Long seriesId);
    //修改系列信息
    public int updateSeries(ProductSeries series);
    //删除系列信息
    public int deleteSeriesByIds(Long[] ids);
}
